﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using CastleDefender.ConfigFolder;


namespace CastleDefender.Object.Monsters
{

    public class MonsterStupid : Monster
    {

        #region CONSTRUCTOR
        public MonsterStupid(Game myGame, ref Texture2D texture, int widthframe, int heightframe, int life, int type, int speed, Vector2 target, Vector2 position)
            : base(myGame, ref texture, widthframe, heightframe,type, life, speed, position)
        {
            vecTarget = target;
            intMoveStep = Config.MonsterMoveStepNormal;
        }
        #endregion

        #region PROTECTED METHOD

        protected override void Move()
        {
            //Thiết lập vị trí mới
            vecPosition = new Vector2(vecPosition.X + intMoveStep * intDirection, vecPosition.Y);
            CheckPosition();

            base.Move();
        }
        #endregion
    }
}
